import jnunes.stickytest.repository.CustomerRepository;
import jnunes.stickytest.repository.StubCustomerRepositoryImpl;
import jnunes.stickytest.service.CustomerService;
import jnunes.stickytest.service.CustomerServiceImpl;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;


@Configuration
@ComponentScan({"jnunes.stickytest"})
public class AppConfig {

	@Bean(name="customerService")
	public CustomerService getCustomerService() {
		CustomerServiceImpl customerService = new CustomerServiceImpl();
	
		return customerService;
	}
	
//	@Bean(name="customerRepository")
//	public CustomerRepository getCustomerRepository() {
//		return new StubCustomerRepositoryImpl();
//		
//	}
	
}
